<?php
	/**
	 * 
	 */
    class SignNature extends APIBase {
		
		public $tag = "SignNature";
		
        public function before() {
			$this->initMysql();
    		return true;
		}
		
		public function logic() {
            
		 
			
			if($this->param['SignNature']=='' || !isset($this->param['SignNature'])){
				$signature='';
			}else{
				 //引入过滤词	
		        include_once(dirname(__FILE__)."/source/badword.php");
		        $arr = explode(',',$badword);
                $content = str_replace($arr,"***",$this->param['SignNature']);
				$signature=trim($content);
			}
			
			$this->data_redis->hSet("hu:{$this->uid}",'signature',$signature);
			

			$this->returnData(array('SignNature'=>$signature));
		}
		
       	public function after() {
    		$this->deinitDataRedis();
			$this->deinitMysql();
		}
    }
?>
